From: Florian Müllner Date: Wed, 9 Sep 2020 19:06:22 +0000 (+0200) Subject: authPrompt: Hide password when insensitive X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~655^2^2~27 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=82da51d5a113a039b54e6a061bf2aa72992fdcd9;p=gnome-shell.git authPrompt: Hide password when insensitive The purpose of password peeking is to spot and correct errors; the latter isn't possible when the entry is non-editable, so we can hide the password again while authentication is ongoing. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3138 --- diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js index a6ea6c8dd..c6231a57f 100644 --- a/js/gdm/authPrompt.js +++ b/js/gdm/authPrompt.js @@ -432,6 +432,8 @@ var AuthPrompt = GObject.registerClass({ if (sensitive) this._entry.grab_key_focus(); + else if (this._entry === this._passwordEntry) + this._entry.password_visible = false; } vfunc_hide() {